const mongoose = require("mongoose");

// 定义骨架
const detailsSchema = mongoose.Schema({
  house_id: Number,
  lease: String,
  price: Number,
  apartment: String,
  inform: Array,
  face: String,
  room: String,
  area: Number,
  floor: String,
  type: String,
  region: String,
  route: String,
  position: String,
  release_time: String,
  live_time: String,
  facilities: Array,
  imgs: Array,
  traffic: Array,
  around: Object,
});

// 创建模型
const detailsModel = mongoose.model("details", detailsSchema);

module.exports = detailsModel;
